package com.xmy.erp.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 日志记录
 * </p>
 *
 * @author hpiggy
 * @since 2023-09-09
 */
@TableName("log_record")
@ApiModel(value = "LogRecord对象", description = "日志记录")
public class LogRecord implements Serializable {

    private static final long serialVersionUID = 1L;

    private Long id;

    private String content;

    @ApiModelProperty("备注")
    private String remark;

    @ApiModelProperty("1正常，2异常，3其它")
    private Integer level;

    private LocalDateTime createdAt;

    private LocalDateTime updatedAt;

    private Integer deleted;

    private LocalDateTime deletedAt;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }
    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }
    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }
    public Integer getLevel() {
        return level;
    }

    public void setLevel(Integer level) {
        this.level = level;
    }
    public LocalDateTime getCreatedAt() {
        return createdAt;
    }

    public void setCreatedAt(LocalDateTime createdAt) {
        this.createdAt = createdAt;
    }
    public LocalDateTime getUpdatedAt() {
        return updatedAt;
    }

    public void setUpdatedAt(LocalDateTime updatedAt) {
        this.updatedAt = updatedAt;
    }
    public Integer getDeleted() {
        return deleted;
    }

    public void setDeleted(Integer deleted) {
        this.deleted = deleted;
    }
    public LocalDateTime getDeletedAt() {
        return deletedAt;
    }

    public void setDeletedAt(LocalDateTime deletedAt) {
        this.deletedAt = deletedAt;
    }

    @Override
    public String toString() {
        return "LogRecord{" +
            "id=" + id +
            ", content=" + content +
            ", remark=" + remark +
            ", level=" + level +
            ", createdAt=" + createdAt +
            ", updatedAt=" + updatedAt +
            ", deleted=" + deleted +
            ", deletedAt=" + deletedAt +
        "}";
    }
}
